package team.lourd.network.system.batch.ext.support;

import lombok.Data;
import org.springframework.util.StringUtils;
import team.lourd.network.system.batch.ext.ConditionAnalyser;


/**
 * 条件解析器 - 建造器
 *
 * @author JADemo
 * @date 2019/2/18 11:06
 */
@Data
public class ConditionAnalyserBuilder {
    // 获取根据条件符号分割条件的条件解析器
    public static ConditionAnalyser build(String logicSymbol) {
        if (!StringUtils.isEmpty(logicSymbol)) {
            LogicConditionAnalyser analyser = new LogicConditionAnalyser();
            analyser.setLogicSymbol(logicSymbol);
            return analyser;
        }
        return null;
    }
}
